home *** CD-ROM | disk | FTP | other *** search
- On Wed, 17 Jan 1996 xvojm10@vse.cz wrote:
-
- > if (lock = Lock(file, ACCESS_READ))
- > {
- > if (dt = ObtainDataType( DTST_FILE, lock, TAG_DONE))
- > {
- > if (dto = NewDTObject( file, DTA_DataType, dt, ..., TAG_DONE))
- > {
-
- If you have a file, you don't need to call ObtainDataType(). Just pass
- the file to NewDTObject() without DTA_DataType. You can also specify a
- group of files, which should only match using DTA_GroupID (or so), perhaps
- GID_PICTURE. (I have no includes here, so the define names may be incorrect)
-
-
- >
- > /*When here is some function ( I had AddDTObject here) that doesn't work
- > with bm the bm was changed to random address from some strange reason. */
- >
- >
- >
- > GetDTAttrs( dto, PDTA_BitMap, &bm, PDTA_scrmode, &scrmode,
- >
- > TAG_DONE);
- >
- You have to check the result from GetDTAttrs() and it must be the number
- of tags you requested. Otherwise some variables aren't set to a correct
- value.
-
- Ciao
- Stefan
-
- Home : Stefan Ruppert EMail: ruppert@goofy.zdv.uni-mainz.de
- Windthorststrasse 5 ruppert@informatik.fh-wiesbaden.de
- 65439 Floersheim am Main WWW: http://www.uni-mainz.de/~ruppert/
- GERMANY
-
-